.class public Les/l10;
.super Ljava/lang/Object;
.source "DlnaDevice.java"

# interfaces
.implements Ljava/lang/Comparable;


# instance fields
.field private a:Lorg/teleal/cling/model/meta/RemoteDevice;

.field private b:Lorg/teleal/cling/support/model/TransportState;

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Lorg/teleal/cling/model/meta/RemoteDevice;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    .line 3
    sget-object p1, Lorg/teleal/cling/support/model/TransportState;->STOPPED:Lorg/teleal/cling/support/model/TransportState;

    iput-object p1, p0, Les/l10;->b:Lorg/teleal/cling/support/model/TransportState;

    return-void
.end method

.method private i()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/Device;->getDetails()Lorg/teleal/cling/model/meta/DeviceDetails;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/Device;->getDetails()Lorg/teleal/cling/model/meta/DeviceDetails;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/DeviceDetails;->getManufacturerDetails()Lorg/teleal/cling/model/meta/ManufacturerDetails;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/Device;->getDetails()Lorg/teleal/cling/model/meta/DeviceDetails;

    move-result-object v0

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/DeviceDetails;->getManufacturerDetails()Lorg/teleal/cling/model/meta/ManufacturerDetails;

    move-result-object v0

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/ManufacturerDetails;->getManufacturer()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const-string v0, ""

    return-object v0
.end method


# virtual methods
.method public a(Lorg/teleal/cling/model/meta/RemoteDevice;)Les/l10;
    .locals 0

    .line 6
    iput-object p1, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    return-object p0
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    .line 5
    iput-object p1, p0, Les/l10;->c:Ljava/lang/String;

    return-void
.end method

.method public a(Lorg/teleal/cling/support/model/TransportState;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/l10;->b:Lorg/teleal/cling/support/model/TransportState;

    return-void
.end method

.method public a()Z
    .locals 4

    .line 2
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 3
    new-instance v2, Lorg/teleal/cling/model/types/UDAServiceType;

    const-string v3, "AVTransport"

    invoke-direct {v2, v3}, Lorg/teleal/cling/model/types/UDAServiceType;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v0, v2}, Lorg/teleal/cling/model/meta/Device;->findService(Lorg/teleal/cling/model/types/ServiceType;)Lorg/teleal/cling/model/meta/Service;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v1, 0x1

    :cond_0
    return v1
.end method

.method public b()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/Device;->getDetails()Lorg/teleal/cling/model/meta/DeviceDetails;

    move-result-object v0

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/DeviceDetails;->getFriendlyName()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const-string v0, "Unknown"

    return-object v0
.end method

.method public c()Ljava/lang/String;
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/l10;->g()Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, ""

    return-object v0

    .line 2
    :cond_0
    iget-object v0, p0, Les/l10;->c:Ljava/lang/String;

    return-object v0
.end method

.method public compareTo(Ljava/lang/Object;)I
    .locals 2

    .line 1
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    if-eqz v0, :cond_0

    instance-of v1, p1, Les/l10;

    if-eqz v1, :cond_0

    .line 2
    check-cast p1, Les/l10;

    .line 3
    iget-object p1, p1, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    invoke-virtual {v0, p1}, Lorg/teleal/cling/model/meta/Device;->equals(Ljava/lang/Object;)Z

    move-result p1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public declared-synchronized d()Ljava/lang/Runnable;
    .locals 1

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Les/l10;->d:Ljava/lang/Runnable;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/l10$a;

    invoke-direct {v0, p0}, Les/l10$a;-><init>(Les/l10;)V

    iput-object v0, p0, Les/l10;->d:Ljava/lang/Runnable;

    .line 3
    :cond_0
    iget-object v0, p0, Les/l10;->d:Ljava/lang/Runnable;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public e()Lorg/teleal/cling/model/meta/RemoteDevice;
    .locals 1

    .line 1
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    return-object v0
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    if-eqz v0, :cond_0

    instance-of v1, p1, Les/l10;

    if-eqz v1, :cond_0

    .line 2
    check-cast p1, Les/l10;

    .line 3
    iget-object p1, p1, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    invoke-virtual {v0, p1}, Lorg/teleal/cling/model/meta/Device;->equals(Ljava/lang/Object;)Z

    move-result p1

    return p1

    .line 4
    :cond_0
    invoke-super {p0, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result p1

    return p1
.end method

.method public f()Lorg/teleal/cling/support/model/TransportState;
    .locals 1

    .line 1
    iget-object v0, p0, Les/l10;->b:Lorg/teleal/cling/support/model/TransportState;

    return-object v0
.end method

.method public g()Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/l10;->b:Lorg/teleal/cling/support/model/TransportState;

    sget-object v1, Lorg/teleal/cling/support/model/TransportState;->TRANSITIONING:Lorg/teleal/cling/support/model/TransportState;

    if-eq v0, v1, :cond_1

    sget-object v1, Lorg/teleal/cling/support/model/TransportState;->PLAYING:Lorg/teleal/cling/support/model/TransportState;

    if-eq v0, v1, :cond_1

    sget-object v1, Lorg/teleal/cling/support/model/TransportState;->PAUSED_PLAYBACK:Lorg/teleal/cling/support/model/TransportState;

    if-ne v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 v0, 0x1

    :goto_1
    return v0
.end method

.method public h()Z
    .locals 2

    .line 1
    iget-object v0, p0, Les/l10;->a:Lorg/teleal/cling/model/meta/RemoteDevice;

    if-eqz v0, :cond_0

    .line 2
    invoke-direct {p0}, Les/l10;->i()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ES"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method
